package net.mikoo.seals.biz.mapper;

import java.util.List;

import org.mybatis.spring.annotation.MapperScan;

import net.mikoo.seals.model.Company;
import net.mikoo.seals.model.CompanyQuery;

@MapperScan
public interface CompanyMapper {
	
	Integer insert(Company company);
	
	Integer update(Company company);
	
	Company selectInfoById(Long companyId);
	
	List<Company> selectByQueryToPage(CompanyQuery query);
	
	Integer countByQueryToPage(CompanyQuery query);
	
	Company selectInfoByQuery(CompanyQuery query);
	
	Integer delete(Company company);

	Integer updateToTransferAdmin(Company company);
	
	List<Company> selectByPartyId(Long partyId);

	Company selectSelectedByQuery(CompanyQuery query);
}